<div class="separator">&nbsp;</div>
<%--<div align="center">--%>
<%--	<g:if test="${usuarioLogueado }">--%>
<%--		<div class="bs-docs-example">--%>
<%--			<div class="dropdown clearfix">--%>
<%--				<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static; margin-bottom: 5px; *width: 180px;">--%>
<%--				<g:if test="${mubbiaInstance.esElUsuarioCreador(usuarioLogueado) }">--%>
<%--				  <li><g:link tabindex="-1" action="index" params="['mubbiaId': mubbiaInstance.id]" id="${mubbiaInstance.id}" controller="nuevaMubbia">Editar Mubbia</g:link></li>--%>
<%--				</g:if>--%>
<%--				<g:if test="${mubbiaInstance.esBorador()}">--%>
<%--					<li><g:link tabindex="-1" action="publicarMubbia" params="['mubbiaId': mubbiaInstance.id]" id="${mubbiaInstance.id}" controller="nuevaMubbia">Publicar Mubbia</g:link></li>--%>
<%--				</g:if>--%>
<%--				<li class="divider"></li>--%>
<%--				<g:if test="${mubbiaInstance.puedeUnirse(usuarioLogueado) }">--%>
<%--					<li><g:link tabindex="-1" action="unirseAMubbia" params="['mubbiaId': mubbiaInstance.id]" id="${mubbiaInstance.id}" controller="nuevaMubbia">Unirse Mubbia</g:link></li>--%>
<%--					<g:actionSubmit tabindex="-1" value="Unite!" action="unirseAMubbia" name="botonUnirseAMubbia" id="botonUnirseAMubbia" />--%>
<%--				</g:if>--%>
<%--				<g:else>--%>
<%--					<li><g:link tabindex="-1" action="desunirseAMubbia" params="['mubbiaId': mubbiaInstance.id]" id="${mubbiaInstance.id}" controller="nuevaMubbia">Salir de la Mubbia</g:link></li>--%>
<%--					<g:actionSubmit tabindex="-1" value="Desunirte" action="desunirseAMubbia" name="botonDesunirseAMubbia" id="botonDesunirseAMubbia" />--%>
<%--				</g:else>--%>
<%--				</ul>--%>
<%--			</div>--%>
<%--		</div>--%>
<%--	--%>
<%--	</g:if>--%>
<%--</div>--%>

<div align="center">
	<g:if test="${usuarioLogueado }">
		<g:if test="${mubbiaInstance.esElUsuarioCreador(usuarioLogueado) }">
			<g:link action="index" params="['mubbiaId': mubbiaInstance.id]" id="${mubbiaInstance.id}" controller="nuevaMubbia" class="btn btn-inverse btn-large">Editar Mubbia</g:link>
			<div class="separator">&nbsp;</div>
			<g:if test="${mubbiaInstance.estaPublicada()}">
				<g:link action="retirarMubbia" params="['mubbiaId': mubbiaInstance.id]" id="${mubbiaInstance.id}" controller="nuevaMubbia" class="btn btn-inverse btn-large">Retirar Mubbia</g:link>
				<div class="separator">&nbsp;</div>
			</g:if>
			<g:if test="${mubbiaInstance.esBorador()}">
				<g:link action="publicarMubbia" params="['mubbiaId': mubbiaInstance.id]" id="${mubbiaInstance.id}" controller="nuevaMubbia" class="btn btn-inverse btn-large">Publicar Mubbia</g:link>
				<div class="separator">&nbsp;</div>
			</g:if>
			<g:link action="cerrarMubbia" params="['mubbiaId': mubbiaInstance.id]" id="${mubbiaInstance.id}" controller="nuevaMubbia" class="btn btn-inverse btn-large">Cerrar Mubbia</g:link>
			<div class="separator">&nbsp;</div>
		</g:if>
		<g:else>
			<g:if test="${mubbiaInstance.puedeUnirse(usuarioLogueado) }">
				<g:actionSubmit class="btn btn-inverse btn-large" value="Unite!" action="unirseAMubbia" name="botonUnirseAMubbia" id="botonUnirseAMubbia" />
			</g:if>
			<g:else>
				<g:actionSubmit class="btn btn-inverse btn-large" value="Desunirte" action="desunirseAMubbia" name="botonDesunirseAMubbia" id="botonDesunirseAMubbia" />
			</g:else>
		</g:else>
		<hr />
	</g:if>
</div>
<g:render template="/templates/usuarioPerfil" model="['usuario':mubbiaInstance.usuarioCreador]"></g:render>
<g:if test="${mubbiaInstance.tieneUsuariosParticipantes()}">
<div class="separator">&nbsp;</div>
	<hr />
	<g:render template="/templates/participantesMubbia" model="['mubbiaInstance':mubbiaInstance]"></g:render>
	<div class="separatorMediano">&nbsp;</div>
</g:if>